const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './',
  // 确保配置文件在打包时被正确复制
  chainWebpack: config => {
    config.plugin('copy').tap(args => {
      args[0].push({
        from: 'public/config.json',
        to: 'config.json'
      })
      return args
    })
  }
})
